package com.tanlu.tcc;

import org.springframework.amqp.core.Queue;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.context.annotation.Bean;


@EnableEurekaClient
@SpringBootApplication
public class TccServiceApplication {

    @Bean
    public Queue transactionQueue(){
        return new Queue("transaction");
    }

    @Bean
    public Queue handlerQueue(){
        return new Queue("handler");
    }

    public static void main(String[] args) {
        SpringApplication.run(TccServiceApplication.class, args);

    }

}
